package com.gxa.saas.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 日志
 * @Author: yx
 * @Date: 2022/6/7 10:19
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Log implements Serializable {
    @ApiModelProperty(name = "id", value = "日志id", dataType = "int", required = false, hidden = true, allowableValues = "1000002")
    private Integer id;
    @ApiModelProperty(name = "username", value = "操作者", dataType = "String", required = true,allowableValues = "admin")
    private String username;
    @ApiModelProperty(name = "dateline", value = "操作日期", dataType = "Date", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dateline;
    @ApiModelProperty(name = "ipAddress", value = "ip地址", dataType = "String", required = true, allowableValues = "220.231.210.22")
    private String ipAddress;
    @ApiModelProperty(name = "record", value = "操作记录", dataType = "String", required = true, hidden = true, allowableValues = "编辑会员账号: windir")
    private String record;
}
